<?php /* Smarty version Smarty-3.1.18, created on 2016-07-04 11:41:12
         compiled from "/data/www/mystery/protected/views/schedule/plan.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12577746435779dad86ab939-04990129%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b841578604070af9ec36893eadbd80b0a7265013' => 
    array (
      0 => '/data/www/mystery/protected/views/schedule/plan.tpl',
      1 => 1423621133,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12577746435779dad86ab939-04990129',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'info' => 0,
    'staff_id' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5779dad8841297_55404794',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5779dad8841297_55404794')) {function content_5779dad8841297_55404794($_smarty_tpl) {?><html>
<head>
<style>
    body,td{font-size:12px;font-family:'Arial Negreta','Arial';}
</style>
<link rel="stylesheet" type="text/css" href="/css/jquery.datetimepicker.css"/>
<script type='text/javascript' src='/js/jquery-1.11.1.min.js'></script>
<script type='text/javascript' src='/js/jquery.form.min.js'></script>
<script type='text/javascript' src='/js/jquery.datetimepicker.js'></script>
<script type='text/javascript' src='/js/layer/layer.min.js'></script>
</head>
<body>
<form name='myForm1' id='myForm1' method='post' action='/schedule/doplan'>
    <div style='margin:10px;'>
        <table>
            <tbody>
            <tr>
                <th>星期</th><th>开始时间</th><th>结束时间</th><th>窗口</th>
            </tr>
            <tr>
                <td>周一：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[1]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[1]['start_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[1]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[1]['end_time'];?>
<?php }?>'  class="Wdate" width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[1]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[1]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr>
                <td>周二：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[2]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[2]['start_time'];?>
<?php }?>'  class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[2]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[2]['end_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[2]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[2]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr>
                <td>周三：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[3]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[3]['start_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[3]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[3]['end_time'];?>
<?php }?>' class="Wdate"  width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[3]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[3]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr>
                <td>周四：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[4]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[4]['start_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[4]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[4]['end_time'];?>
<?php }?>' class="Wdate"  width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[4]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[4]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr>
                <td>周五：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[5]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[5]['start_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[5]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[5]['end_time'];?>
<?php }?>' class="Wdate"  width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[5]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[5]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr>
                <td>周六：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[6]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[6]['start_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[6]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[6]['end_time'];?>
<?php }?>' class="Wdate"  width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[6]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[6]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr>
                <td>周日：</td>
                <td><input name='start[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[7]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[7]['start_time'];?>
<?php }?>' class="Wdate" width="80px"></td>
                <td><input name='end[]' type='text' value='<?php if ($_smarty_tpl->tpl_vars['info']->value[7]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[7]['end_time'];?>
<?php }?>' class="Wdate"  width="80px"></td>
                <td><input name="wicket[]" type="text" value="<?php if ($_smarty_tpl->tpl_vars['info']->value[7]) {?><?php echo $_smarty_tpl->tpl_vars['info']->value[7]['wicket'];?>
<?php }?>" width="50px"</td>
            </tr>
            <tr><td colspan='3'><input type='submit' value='提交'></td></tr>
            </tbody>
        </table>
        <input name='staff_id' type='hidden' value='<?php echo $_smarty_tpl->tpl_vars['staff_id']->value;?>
' />
    </div>
</form>
    <script>
        $(document).ready(function() {     
                var options = {         
                    beforeSubmit:  showRequest,  
                    success:       showResponse,
                    dataType:  'json'
                }
                $('#myForm1').ajaxForm(options);  
                
                
                $('.Wdate').datetimepicker({
                        datepicker:false,
                        format:'H:i',
                        allowTimes:['12:00','13:00','15:00','17:00','18:00','18:30','19:00','20:00']
                });

        });
            function showRequest(formData, jqForm, options) { 
                return true;
            }
            function showResponse(responseText, statusText, xhr, $form)  { 
                if (responseText.status==1) {
                    window.parent.location.reload();return;
                }
                alert(responseText.note);
            }
    </script>
</body>
</html><?php }} ?>
